Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Objects /
Chapter 4 - Colors and Color-Related Objects / Colors and Color-Related Objects Reference
Constants and Data Types


The gxSetColor Union

A color set object is essentially an array of color values. The acceptable types of color values that it may contain are defined by the gxSetColor union:

union gxSetColor{
   gxCMYKColor    cmyk;
   gxRGBColor     rgb;
   gxRGBAColor    rgba;
   gxHSVColor     hsv;
   gxHLSColor     hls;
   gxXYZColor     xyz;
   gxYXYColor     yxy;
   gxLUVColor     luv;
   gxLABColor     lab;
   gxYIQColor     yiq;
   gxColorValue   gray;
   gxGrayAColor   graya;
   unsigned short pixel16;
   unsigned long  pixel32;
   gxColorValue   component[4];
};
The gxSetColor union is an abbreviated gxColor structure. The gxColor structure is described on page 4-53.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996